<?php
namespace frontend\controllers;

use frontend\models\TelnetModel;

class TelnetController extends \yii\console\Controller
{
    public function actionStart()
    {
        $telnetServer = new TelnetModel();

        try{
            $telnetServer->start();
        }catch (\Exception $e){
            echo "异常:". $e->getMessage();
            return 1;
        }

        return 0;
    }




}